//
//  dma.h
//  NMEA
//
//  Created by Hans Johnson on 2/11/2014.
//
//

#ifndef NMEA_dma_h
#define NMEA_dma_h

#define DMA_QUEUES 16

// The DMA Request Queue
extern volatile xQueueHandle dmaReqQueue;

// DMA transfer Type
typedef struct DMA_REQ_struct
{
    xTaskHandle reqTask;
    void * dmaSrc;
    void * dmaDest;
    uint8_t count;
    uint8_t CTRL;
} DMA_REQ_t;

void dmaInit(void);
void dmaTask(void *pvParameters);

#endif
